/* Pi-hole: The primary style for the Website Blocked page */
/* by WaLLy3K 01FEB15 */
/* Developed on: Chrome v55 Win & macOS, Firefox v51 Win, IE11 Win, Safari 10 macOS, Safari iOS 9.3.3 */

/* http://necolas.github.io/normalize.css */
html { font-family: sans-serif; line-height: 1.15; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
article, aside, footer, header, nav, section { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
figcaption, figure, main { display: block; }
figure { margin: 1em 40px; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; -webkit-text-decoration-skip: objects; }
a:active, a:hover { outline-width: 0; }
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }
b, strong { font-weight: inherit; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
dfn { font-style: italic; }
mark { background-color: #ff0; color: #000; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
audio, video { display: inline-block; }
audio:not([controls]) { display: none; height: 0; }
img { border-style: none; }
svg:not(:root) { overflow: hidden; }
button, input, optgroup, select, textarea { font-family: sans-serif; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { display: inline-block; vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details, menu { display: block; }
summary { display: list-item; }
canvas { display: inline-block; }
template { display: none; }
[hidden] { display: none; }

html { font-size: 62.5%; }
a { color: rgba(65,120,190,0.95); text-decoration: none; }
a:hover { color: rgba(215,145,55,0.95); transition-duration: .2s; }
b { font-weight: bold; }
i { font-style: italic; }
:-ms-input-placeholder { color: rgba(68,68,68,0.43) !important; }

body {
  -webkit-text-size-adjust: 100%;
  background: #e6e6e6 repeat fixed;
  background-image: -webkit-linear-gradient(top, rgba(220,220,220,0.6), rgba(240,240,240,0.6)), url('https://raw.githubusercontent.com/pi-hole/AdminLTE/master/img/boxed-bg.jpg');
  background-image: linear-gradient(to bottom, rgba(220,220,220,0.6), rgba(240,240,240,0.6)), url('https://raw.githubusercontent.com/pi-hole/AdminLTE/master/img/boxed-bg.jpg');
  font: 1.35rem 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6rem !important;
  color: rgba(68,68,68,1);
}

header h1, header div {
  display: table-cell;
  width: 100%;
  vertical-align: top;
}

header h1:before, header h1:after {
  content: "";
  position: absolute;
  display: inline-block;
  top: 2px;
  left: 2px;
  width: 80px;
  height: 80px;
  background: url('https://wally3k.github.io/style/phv.svg') no-repeat;
}

header h1:before {
  z-index: -1;
  top: -48px;
  left: -48px;
  width: 240px;
  height: 240px;
  opacity: 0.1;
}

header h1 {
  font: bold 3rem 'Trebuchet MS', sans-serif;
  padding: 8px;
  text-indent: 58px;
  text-shadow: 0 1px rgba(0,0,0,0.25);
}

header h1 a, h1 a:hover { color: inherit; }

main {
  position: relative;
  display: block;
  z-index: 1;
  width: 80%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 6px;
  background-color: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.22);
  box-shadow: 0 0 1px 1px rgba(0,0,0,0.04);
  border-radius: 8px;  
}

footer {
  margin: 4px auto;
  width: 86%;
  font: 1.1rem Consolas, monospace;
  text-align: center;
}

main div { margin: 6px 0; }
main div:first-child { margin-top: 0; }
main div:last-child { margin-bottom: 0; }

.msg {
  display: block;
  margin-top: 4px;
  text-indent: 8px;
  font: bold 1.6rem Consolas, monospace;
  white-space: pre-line;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.buttons {
  display: table;
  width: 100%;
  margin: 0;
  font-size: 1.2rem;
  white-space: nowrap;
  border-spacing: 4px 0;
}
 
.buttons * {
  display: table-cell;
  padding: 3px 8px;
  color: inherit;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px rgba(255,255,255,0.22);
  background: #F8F8F8;
  background: -webkit-linear-gradient(top, rgba(245,245,245,0.25), rgba(225,225,225,0.25));
  background: linear-gradient(to bottom, rgba(245,245,245,0.25), rgba(225,225,225,0.25));
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  margin-right: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.buttons *:not(#pw) {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.buttons a:hover, .buttons label:hover, .buttons button:hover {
  color: inherit; 
  background: -webkit-linear-gradient(top, rgba(195,195,195,0.25), rgba(175,175,175,0.25));
  background: linear-gradient(to bottom, rgba(195,195,195,0.25), rgba(175,175,175,0.25));
}

.buttons input[type="password"] {
  width: 160px;
  cursor: text;
  font-weight: normal;
  background: -webkit-linear-gradient(bottom, rgba(245,245,245,0.25), rgba(225,225,225,0.25));
  background: linear-gradient(to top, rgba(245,245,245,0.25), rgba(225,225,225,0.25));
}

.buttons input:disabled, .buttons button:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
  background: rgba(0,0,0,0.04) !important;
}
  
#back { background-color: rgba(0,220,0,0.4); }
#info { background-color: rgba(60,140,220,0.4); width: 84px; }
#whitelist { background-color: rgba(220,0,0,0.4); }

#toggle, #querylist { display: none; }
@keyframes fade { from {opacity: 0;} to {opacity: 1;} }
#toggle:checked ~ #querylist, #querylist[style*="display: block"] { display: block !important; animation: fade .2s linear; }

#querylist #output {
  font-family: Consolas, monospace;
  white-space: pre;
  font-size: 0.85em;
  margin: 2px 0 2px 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  width: 98%;
}

#output span { display: inline-block; width: 38px; }
#querylist .buttons { margin-top: 6px; }
#domain { display: none; }

#notification {
  text-align: center;
  padding: 4px;
  margin: 8px 0 0 0;
  border: 1px dashed #CBCBCB;
  background: #F1DD71;
  border-radius: 6px;
  white-space: normal;
  word-wrap: break-word;
}

/* IE 10+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  form.buttons { width: auto; }
  .buttons * { margin-right: 0; vertical-align: middle; }
  #whitelist { padding: 0 8px; }
}

/* Safari: iOS */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-device-width: 768px) {
   #pw { height: 16px; }
}

/* iPhone: Portrait */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: portrait) {
  main { width: 100%; border-radius: 0; margin: 0 0 4px 0; border-width: 1px 0; }
  header { background-color: rgba(255,255,255,0.3); }
  header h1:before { height: 0; }
  header h1:after { height: 42px; }
  header h1 { text-indent: 28px; font-size: 2.4rem; }
}
